package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 巡更流水详情表
 * </p>
 *
 * @author pan
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CrmPatrolRecordInfo", description="巡更流水详情表")
public class CrmPatrolRecordInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "流水记录表ID")
    @TableField("patrol_record_id")
    private Long patrolRecordId;

    @ApiModelProperty(value = "巡更点ID")
    @TableField("point_patrol_id")
    private Long pointPatrolId;

    @ApiModelProperty(value = "记录时间")
    @TableField("record_time")
    private LocalDateTime recordTime;

    @ApiModelProperty(value = "记录内容")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "序号")
    @TableField(exist = false)
    private Integer sort;

    @ApiModelProperty(value = "点位")
    @TableField(exist = false)
    private String pointName;
}
